<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- DW6 -->
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<title>アカウント作成画面</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<script language="JavaScript" src="../js/common.js" type="text/javascript"></script>
<script src="../SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
<link href="../SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
</head>
<body bgcolor="#F4FFE4">
<?php include("../head.php") ?>
<?php include("../Service/WebClass/member/RegistClass.php");
$regist = new Regist;
$regist->mytask(); 
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">

 <tr>
    <td width="151" valign="top" bgcolor="#5C743D">&nbsp;</td>
    <td width="595" colspan="2" align="center" >
    <br />
    <form name="inputform" method="post">
    <?php
    echo "<input type=hidden name=act value=submit>"
    ?>
    <?php
    if($regist->errorMessage != null && $regist->errorMessage != "")
		echo "<font id=errorMsg name=errorMsg color=red>".$regist->errorMessage."</font>";
    ?>    
    <table class="tbl" width="90%" border="0" cellpadding="4" cellspacing="0">
      <tbody><tr>
			<td class="td9" width="110" align="left"><span class="subHeader">ユーザー名</span></td>
			<td width="407" class="td4 left">
            <?php echo $regist->loginid;?>
			<input type=hidden  name="memberid" id="memberid" value=<?php echo $regist->memberid;?> >			</td>
		</tr>

		<tr>
			<td class="td9 top"><span class="subHeader">パスワード</span></td>
			<td class="td4 border"><span id="sprytextfield3">
			<input name="password" size="20" maxlength="20" class="txBox" type="password" style="ime-mode:disabled;" value=<?php echo $regist->password;?> ></input>
				<span class="textfieldRequiredMsg">パスワードを入力してください</span></span>				&nbsp;&nbsp;&nbsp;&nbsp;
			    <input class="btn btn_widest" value="サンプル" onclick="this.form.password_sample.value = makePassword(8);this.form.password_sample.style.display='';" type="button" />
		      <input name="password_sample" size="15" value="" style="display: none;" readonly="readonly" type="text">			</td>
		</tr>
		<tr>
			<td class="td9 top"><span class="subHeader">パスワード(確認用)</span></td>
			<td class="td4 border"><span id="sprytextfield4">
			<input name="confirm_password" size="20" maxlength="20" class="txBox" type="password" style="ime-mode:disabled;" value=<?php echo $regist->confirm_password;?> ></input>
			  <span class="textfieldRequiredMsg">パスワード(確認用)を入力してください。</span></span></td>
		</tr>
        <tr>
			<td class="td9 top"><span class="subHeader">会社名</span></td>
			<td class="td4 border"><span id="sprytextfield5">
			<input name="company" size="60" maxlength="100" class="txBox" type="text" value=<?php echo $regist->company;?> ></input>
			  <span class="textfieldRequiredMsg">会社名を入力してください。</span></span></td>
		</tr>
                <tr>
			<td class="td9 top"><span class="subHeader">役職名</span></td>
			<td class="td4 border">
			  <input name="post" size="30" maxlength="100" class="txBox" type="text" value=<?php echo $regist->post;?> ></input>			</td>
		</tr>
                <tr>
			<td class="td9 top"><span class="subHeader">担当者名</span></td>
			<td class="td4 border"><span id="sprytextfield7">
			<input name="name" size="30" maxlength="100" class="txBox" type="text" value=<?php echo $regist->name;?> ></input>
			  <span class="textfieldRequiredMsg">担当者名を入力してください。</span></span></td>
		</tr>
                <tr>
			<td class="td9 top"><span class="subHeader">電話番号</span></td>
			<td class="td4 border"><span id="sprytextfield8">
          <input name="telephone" size="30" maxlength="100" class="txBox" type="text" style="ime-mode:disabled;" value=<?php echo $regist->telephone;?> ></input>
            <span class="textfieldRequiredMsg">電話番号を入力してください。</span></span></td>
		</tr>
                <tr>
			<td class="td9 top"><span class="subHeader">メールアドレス</span></td>
			<td class="td4 border"><span id="sprytextfieldmail">
            <label>
          <input name="email" type="text" class="txBox" id="email" size="30" maxlength="100" style="ime-mode:disabled;" value=<?php echo $regist->email;?> ></input>
            </label>
            <span class="textfieldRequiredMsg">メールアドレスを入力してください。</span><span class="textfieldInvalidFormatMsg">入力のフォーマットは不正</span></span></td>
		</tr>
                <tr>
			<td class="td9 top"><span class="subHeader">運営者</span></td>
			<td class="td4 border"><select name="management" id="management">
			 <!-- <option value="1">Alito</option> -->
			  <option value="2">代理店</option>
			  <option value="3">登録企業</option>
			  </select>
 				<script>
					document.getElementById("management").value = <?php echo $regist->management; ?>;
				</script>			</td>
		</tr>
        <tr>
			<td class="td9 top"><span class="subHeader">会社規模</span></td>
			<td class="td4 border">
            	<select name="scaleId" id="scaleId">
                <?php echo $regist->scaleIdValueList;?>
              	</select>
                <script>
				document.getElementById("scaleId").value = <?php echo $regist->scaleId; ?>;
				</script>
             </td>
		</tr>
          <tr>
			<td class="td9 top"><span class="subHeader">業種</span></td>
			<td class="td4 border"><select name="industryId" id="industryId">
			  <?php echo $regist->industryIdValueList;?>
			  </select>
 				<script>
				document.getElementById("industryId").value = <?php echo $regist->industryId; ?>;
				</script>			</td>
		</tr>
          <tr>
			<td class="td9 top"><span class="subHeader">住所</span></td>
			<td class="td4 border">
			<input name="address" size="60" maxlength="100" class="txBox" type="text" value=<?php echo $regist->address;?> ></input>			</td>
		</tr>
          <tr>
			<td class="td9 top"><span class="subHeader">部署</span></td>
			<td class="td4 border"><input name="section" size="60" maxlength="100" class="txBox" type="text" value=<?php echo $regist->section;?> ></input>			</td>
		</tr>
          <tr>
			<td class="td9 top"><span class="subHeader">fax番号</span></td>
			<td class="td4 border">
          <input name="fax" size="30" maxlength="100" class="txBox" type="text" value=<?php echo $regist->fax;?> ></input>            </td>
          </tr>
          <tr>
            <td class="td9 top"><span class="subHeader">郵便番号</span></td>
            <td class="td4 border"><input name="postalCode" size="30" maxlength="100" class="txBox" type="text" value="<?php echo $regist->postalCode;?>" />
                </input>
            </td>
          </tr>
          <tr>
			<td height="34" class="td9 top"><span class="subHeader">リスティング成績分析</span></td>
			<td class="td4 border"></input>    
			  <input name="joinRanking" type="radio" id="joinRanking" value="1" <?php if($regist->joinRanking == 1) { ?>checked="checked" <?php } ?>/>
			  参加
			  <input name="joinRanking" type="radio"  id="joinRanking2" value="0" <?php if($regist->joinRanking == 0) { ?>checked="checked" <?php } ?>/>不参加
			</td>
		</tr>
        <tr>
			<td class="td9 top" colspan="2"><span class="subHeader">Google Adwords
<!--
			  <input name="Google" type="checkbox" id="Google" checked="checked" />
			  -->
			</span><br/>
			※アカウントメールアドレスをAdlisting管理のGoogleAdwordsクライアントセンターに登録後、システムにデータが反映されます。クライアントセンターへの登録が完了次第、ご連絡させて頂きます。</td>
		</tr>
            <tr>
			<td class="td9 top"><span class="subHeader">アカウントメールアドレス</span></td>
			<td class="td4 border"><span id="sprytextfieldgoogleAccount">
				<input name="googleAccount" type="text" class="txBox" id="account" maxlength=100　style="ime-mode:disabled;" />
				<span class="textfieldRequiredMsg">入力してください。</span></span></td>
		</tr>
               <tr>
			<td class="td9 top"><span class="subHeader">パスワード</span></td>
			<td class="td4 border"><span id="sprytextfieldgooglePassword">
				<input name="googlePassword" type="password" class="txBox" id="account" maxlength=100　style="ime-mode:disabled;" />
				<span class="textfieldRequiredMsg">入力してください。</span></span></td>
		</tr>
        <!--<tr>
			<td class="td9 top" colspan="2"><span class="subHeader">Yahoo Overture
			  <input name="yahoo" type="checkbox" id="yahoo" checked="checked" />
			</span></td>
		</tr>
            <tr>
			<td class="td9 top"><span class="subHeader">アカウント</span></td>
			<td class="td4 border"><input name="yahooAccount" type="text" class="txBox" id="account" maxlength=100　style="ime-mode:disabled;" /></td>
		</tr>
               <tr>
			<td class="td9 top"><span class="subHeader">パスワード</span></td>
			<td class="td4 border"><input name="yahooPassword" type="password" class="txBox" id="account" maxlength=100　style="ime-mode:disabled;" /></td>
		</tr>-->
        <tr>
          <td class="td4 border"　align="center" colspan="2"><div align="center">
          <!--
            <input type="submit" class="navText" value="次へ"/>
            -->
            <input name="提交" type="submit" class="navText" value="完了"/>
          </div></td>
        </tr>
	</tbody>
    </table>
    </form>
    <br />
    </td>

  </table>
<?php include("../foot.php");?>
<script type="text/javascript">
<!--
var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3");
var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4");
var sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5");
var sprytextfield7 = new Spry.Widget.ValidationTextField("sprytextfield7");
var sprytextfield8 = new Spry.Widget.ValidationTextField("sprytextfield8");
var sprytextfieldmail = new Spry.Widget.ValidationTextField("sprytextfieldmail", "email");
var sprytextfieldgoogleAccount = new Spry.Widget.ValidationTextField("sprytextfieldgoogleAccount");
var sprytextfieldgooglePassword = new Spry.Widget.ValidationTextField("sprytextfieldgooglePassword");
//-->
</script>
</body>
</html>
